package com.cevent.zhanniu.business.config;/**
 * Created by Cevent on 2020/11/21.
 */

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;

/**
 * @author cevent
 * @description
 * @date 2020/11/21 14:26
 */
@SpringBootApplication
@EnableEurekaClient
@MapperScan("com.cevent.zhanniu.server.mapper")
@ComponentScan("com.cevent.zhanniu")
public class BusinessApplication {
    private static final Logger LOG= LoggerFactory.getLogger(BusinessApplication.class);

    public static void main(String[] args) {
        SpringApplication springApplication=new SpringApplication(BusinessApplication.class);
        Environment environment=springApplication.run(args).getEnvironment();
        LOG.info("站牛网-Business模组启动成功！");
        LOG.info("站牛网-Business地址：\t http://127.0.0.1:{}",environment.getProperty("server.port"));
    }
}
